package com.yonyougov.devops.cruxcisupport.constvar;

import com.yonyougov.devops.fwc.api.enums.BaseErrorCode;

public class DevOpsErrorCode extends BaseErrorCode {
    //认证01开头
    public static final BaseErrorCode AUTH_NO_TOKEN = new DevOpsErrorCode("010000", "token不存在");
    public static final BaseErrorCode AUTH_TOKEN_INVALID = new DevOpsErrorCode("010001", "token无效");

    //密码02开头
    public static final BaseErrorCode PASSWORD_INVALID = new DevOpsErrorCode("020000", "密码无效");

    //上传kubeConfig文件
    public static final BaseErrorCode FILE_NAME_INVAILD = new DevOpsErrorCode("030000", "文件名称不是config");
    public static final BaseErrorCode FILE_CONTENT_EMPTY = new DevOpsErrorCode("030001", "文件内容为空");

    // 提测相关
    public static final BaseErrorCode INSUFFICIENT_PERMISSION = new DevOpsErrorCode("040001", "权限不足");

    protected DevOpsErrorCode(String code, String msg) {
        super(code, msg);
    }
}